(function(angular) {
	'use strict';
	angular.module("fs.waf").config([ 'modalServiceProvider', function(modalServiceProvider) {
		modalServiceProvider.setDialogsModule('waf.pdf.viewer', {
			title : 'title.dialogs.pdf',
			pageId : 'WAF_PDF_VIEWER',
			templateUrl : 'waf/view/${theme}/popup/document/pdfViewer.html',
			controller : 'waf.popup.documentViewerController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/js/module/file/view/pdf.js',
			                   'waf/js/module/file/view/pdf.worker.js',
			              	   'waf/js/module/file/view/angular-pdf-viewer.min.js',
			              	   'waf/view/${theme}/popup/document/documentViewerController.js' ],
			i18nConfig : 'do/p/waf/resource/popup/document'
		});
		modalServiceProvider.setDialogsModule('waf.image.viewer', {
			title : 'title.dialogs.image',
			pageId : 'WAF_IMAGE_VIEWER',
			templateUrl : 'waf/view/${theme}/popup/document/imageViewer.html',
			controller : 'waf.popup.documentViewerController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/js/module/file/view/angular-image-viewer.js',
			              	   'waf/view/${theme}/popup/document/documentViewerController.js' ],
			i18nConfig : 'do/p/waf/resource/popup/document'
		});
		modalServiceProvider.setDialogsModule('waf.text.viewer', {
			title : 'title.dialogs.text',
			pageId : 'WAF_TEXT_VIEWER',
			templateUrl : 'waf/view/${theme}/popup/document/textViewer.html',
			controller : 'waf.popup.documentViewerController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/document/documentViewerController.js' ],
			i18nConfig : 'do/p/waf/resource/popup/document'
		});
		modalServiceProvider.setDialogsModule('waf.enrollment', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_ENROLLMENT',
			templateUrl : 'waf/view/${theme}/popup/security/enrollment_init.html',
			controller : 'waf.popup.enrollmentController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/enrollment_init.js' ],
			layoutConfig : 'do/p/waf/layout/popup/enrollment',
			i18nConfig : 'do/p/waf/resource/popup/enrollment',
			authorizationConfig : 'do/p/waf/authorization/popup/enrollment',
			validatorConfig : 'do/p/waf/validator/popup/enrollment'
		});
		
		modalServiceProvider.setDialogsModule('waf.authenWizard1', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_AUTHENWIZARD1',
			templateUrl : 'waf/view/${theme}/popup/security/authen_antiphishing.html',
			controller : 'waf.popup.authenWizard1Controller',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/authen_antiphishing.js' ],
			layoutConfig : 'do/p/waf/layout/popup/authenWizard1',
			i18nConfig : 'do/p/waf/resource/popup/authenWizard1',
			authorizationConfig : 'do/p/waf/authorization/popup/authenWizard1',
			validatorConfig : 'do/p/waf/validator/popup/authenWizard1'
		});
		
		modalServiceProvider.setDialogsModule('waf.authenWizard2', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_AUTHENWIZARD2',
			templateUrl : 'waf/view/${theme}/popup/security/authen_mtag.html',
			controller : 'waf.popup.authenWizard2Controller',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/authen_mtag.js' ],
			layoutConfig : 'do/p/waf/layout/popup/authenWizard2',
			i18nConfig : 'do/p/waf/resource/popup/authenWizard2',
			authorizationConfig : 'do/p/waf/authorization/popup/authenWizard2',
			validatorConfig : 'do/p/waf/validator/popup/authenWizard2'
		});
		
		modalServiceProvider.setDialogsModule('waf.authenWizard21', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_AUTHENWIZARD21',
			templateUrl : 'waf/view/${theme}/popup/security/register_computer_ac.html',
			controller : 'waf.popup.authenWizard21Controller',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/register_computer_ac.js' ],
			layoutConfig : 'do/p/waf/layout/popup/authenWizard21',
			i18nConfig : 'do/p/waf/resource/popup/authenWizard21',
			authorizationConfig : 'do/p/waf/authorization/popup/authenWizard21',
			validatorConfig : 'do/p/waf/validator/popup/authenWizard21'
		});
		
		modalServiceProvider.setDialogsModule('waf.authenWizard22', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_AUTHENWIZARD22',
			templateUrl : 'waf/view/${theme}/popup/security/register_computer_qa.html',
			controller : 'waf.popup.authenWizard22Controller',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/register_computer_qa.js' ],
			layoutConfig : 'do/p/waf/layout/popup/authenWizard22',
			i18nConfig : 'do/p/waf/resource/popup/authenWizard22',
			authorizationConfig : 'do/p/waf/authorization/popup/authenWizard22',
			validatorConfig : 'do/p/waf/validator/popup/authenWizard22'
		});
		
		modalServiceProvider.setDialogsModule('waf.authenWizardN', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_POPUP_AUTHENWIZARDN',
			templateUrl : 'waf/view/${theme}/popup/security/type_password.html',
			controller : 'waf.popup.authenWizardNController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/security/type_password.js' ],
			layoutConfig : 'do/p/waf/layout/popup/authenWizardN',
			i18nConfig : 'do/p/waf/resource/popup/authenWizardN',
			authorizationConfig : 'do/p/waf/authorization/popup/authenWizardN',
			validatorConfig : 'do/p/waf/validator/popup/authenWizardN'
		});
		modalServiceProvider.setDialogsModule('waf.audit.popuplist', {
			title : 'title.dialogs.popup',
			pageId : 'WAF_AUDIT_POPUPLIST',
			templateUrl : 'waf/view/${theme}/popup/audit/auditList.html',
			controller : 'waf.popup.auditListController',
			controllerAs : 'vm',
			dependentFiles : [ 'waf/view/${theme}/popup/audit/auditListController.js' ],
			layoutConfig : 'do/waf/layout/popup/auditList',
			i18nConfig : 'do/waf/resource/popup/auditList',
			authorizationConfig : 'do/waf/authorization/popup/auditList',
			validatorConfig : 'do/waf/validator/popup/auditList'
		});
	} ]);
})(angular);